﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntelliTouchMix
{
    public partial class ComponentBoxForm : Form
    {
        public ComponentBox twoFinger;
        public ComponentBox threeFinger;
        public ComponentBox material;
        public ComponentBox snap;
        public void selectPanel()
        {
            twoFinger.select();
            threeFinger.select();
            material.select();
            snap.select();
        }
        public void unSelectPanel()
        {
            twoFinger.unSelect();
            threeFinger.unSelect();
            material.unSelect();
            snap.unSelect();
        }
        
        public ComponentBoxForm()
        {
            InitializeComponent();
            threeFinger = ComponentBox.Samples();
            snap = ComponentBox.snapAction();
            twoFinger = ComponentBox.twoFingersAction();
            material = ComponentBox.materialAction();
            Util.dockFormInContainer(threeFinger);
            Util.dockFormInContainer(snap);
            Util.dockFormInContainer(twoFinger);
            Util.dockFormInContainer(material);

            // snap.Dock = DockStyle.Right;
            panelEx1.Controls.Add(threeFinger);
            panelEx1.Controls.Add(twoFinger);
            panelEx1.Controls.Add(material);
            panelEx1.Controls.Add(snap);
            //tableLayoutPanel1.Controls.Add(threeFinger, 1, 0);
            //tableLayoutPanel1.Controls.Add(material, 0, 1);
            
            threeFinger.Dock = DockStyle.Left;
            snap.Dock = DockStyle.Left;
            twoFinger.Dock = DockStyle.Left;
            material.Dock = DockStyle.Left;
           /* twoFinger.Dock = DockStyle.Fill;
            threeFinger.Dock = DockStyle.Bottom;
            snap.Dock = DockStyle.Right;
            material.Dock = DockStyle.Left;*/
            // Util.centerForm.expand4 = true;
        }
    }
}
